package com.mayuanfei.springboot11.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * TODO 类描述
 *
 * @author 老马
 * @date 2022-08-19 09:07
 */
@Documented
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {SignValidator.class})
public @interface SignCheck {
    //签名字段名
    String signFieldName() default "sign";

    String message() default "验签失败";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}
